﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="settings.aspx.cs" Inherits="admin_settings" %>

<%@ Register TagPrefix="basecon" TagName="header" Src="~/basecon/header.ascx" %>
<%@ Register TagPrefix="basecon" TagName="info" Src="~/basecon/info.ascx" %>
<%@ Register TagPrefix="basecon" TagName="import" Src="~/basecon/import.ascx" %>
<%@ Register TagPrefix="webcon" TagName="nav" Src="~/admin/webcon/nav.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>管理员-管理网站</title>
    <basecon:header ID="header" EnableAjaxFileUploadJs="true" runat="server" />

    <script type="text/javascript">
$(document).ready(function() {
    $("#cbEnableSmtp").click(function(){
        if($(this).attr("checked") == true)
        {
            $("#divSmtpSettings").show();
        }
        else
        {
            $("#divSmtpSettings").hide();
        }
    });
    $("#btnClearWebSite").click(function(){$.blockUI({ message: $("#divClearWebSite"),target: "#form1"})});
    $(".close").click(function(){$.unblockUI();});
});
    </script>

    <style type="text/css">
    .maindiv div
    {
    margin-bottom:10px;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <basecon:info ID="info" runat="server" />
            <webcon:nav ID="conNav" runat="server" />
            <div class="maindiv">
                <div>
                    <asp:CheckBox ID="cbEnableSmtp" runat="server" Text="激活邮件服务器" />
                    <asp:Button ID="btnSaveSmtp" runat="server" Text="保存" OnClick="btnSaveSmtp_Click" />
                </div>
                <div id="divSmtpSettings" runat="server">
                    <table class="blackborder">
                        <tr>
                            <td>
                                邮箱服务器：</td>
                            <td>
                                <asp:TextBox ID="tbSmtpHost" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                服务器端口：</td>
                            <td>
                                <asp:TextBox ID="tbSmtpPort" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                邮箱用户名：</td>
                            <td>
                                <asp:TextBox ID="tbSmtpUser" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                密码：</td>
                            <td>
                                <asp:TextBox ID="tbSmtpPwd" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    文件上传大小限制在<asp:TextBox ID="tbMaxFileSize" runat="server" Width="100px"></asp:TextBox>字节
                    <asp:Button ID="btnSaveMaxFileSize" runat="server" Text="确定" OnClick="btnSaveMaxFileSize_Click" /></div>
                <div>
                    评审论文书：最少<asp:TextBox ID="tbMinPaperNum" runat="server" Width="60px"></asp:TextBox>篇，最多<asp:TextBox
                        ID="tbMaxPaperNum" runat="server" Width="60px"></asp:TextBox>篇
                    <asp:Button ID="btnSetPaperNum" runat="server" Text="确定" OnClick="btnSetPaperNum_Click" /></div>
                <basecon:import ID="ipTeam" runat="server" />
                <basecon:import ID="ipDoctor" runat="server" />
                <basecon:import ID="ipStudent" runat="server" />
                <basecon:import ID="ipCategory" runat="server" />
                <div>
                    <asp:Button ID="btnLock" runat="server" Text="锁定网站" OnClick="btnLock_Click" /></div>
                <div>
                    <asp:Button ID="btnDistributeAllStudent" runat="server" Text="为学生分配评审专家" OnClick="btnDistributeAllStudent_Click" /></div>
                <div>
                    <input id="btnClearWebSite" type="button" value="清除网站数据" />
                    <div id="divClearWebSite" style="display: none">
                        <div class="close">
                            <asp:Image ID="imgX" runat="server" /></div>
                        <p>
                            请选择清除内容：</p>
                        <p>
                            <asp:CheckBox ID="cbTeam" runat="server" Text="团队" />
                            <asp:CheckBox ID="cbDoc" runat="server" Text="导师" />
                            <asp:CheckBox ID="cbStu" runat="server" Text="学生" /></p>
                        <p>
                            <asp:CheckBox ID="cbEmail" runat="server" Text="所有信件" />
                            <asp:CheckBox ID="cbPap" runat="server" Text="所有论文" />
                            <asp:CheckBox ID="cbCat" runat="server" Text="所有导师类型" /></p>
                        <p style="text-align: center">
                            <asp:Button ID="btnClearing" runat="server" Text="确定" OnClick="btnClearing_Click" /></p>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
